package com.ddd.infrastructure.common.exception;

import com.ddd.client.base.dto.data.BaseErrorCode;
import com.ddd.framework.exception.BizException;

import java.io.Serial;

/**
 * 业务异常
 *
 * @author guowm
 */
public class DddBizException extends BizException {

    @Serial
    private static final long serialVersionUID = 1L;

    public DddBizException(BaseErrorCode baseErrorCode) {
        super(baseErrorCode.getErrorCode(), baseErrorCode.getErrorDescription());
    }
}
